package cn.itcast.aop;

import lombok.extern.slf4j.Slf4j;
import org.aspectj.lang.annotation.After;
import org.aspectj.lang.annotation.Before;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

@Component
//@Aspect
@Slf4j
@Order(1)
public class OrderAspect2 {
    @Before("cn.itcast.aop.NoticeAspect.suibian()")
    public void before(){
        log.info("-------------before22222");
    }

    @After("cn.itcast.aop.NoticeAspect.suibian()")
    public void after(){
        log.info("-------------after22222");
    }
}
